﻿
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <title>WLBLOG 项目说明</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="WLBLOG">
	<meta name="keywords" content="WLBLIG">

    <!-- Le styles -->
    <link href="http://cdn.bootcss.com/bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/bootstrap/2.3.2/css/bootstrap-responsive.min.css" rel="stylesheet">
	<link href="http://cdn.bootcss.com/highlight.js/8.6/styles/monokai_sublime.min.css" rel="stylesheet">
	<style>
	body{font-family:"ff-tisa-web-pro-1","ff-tisa-web-pro-2","Lucida Grande","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei UI","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;}
	</style>
	<style>
		.w90{width:90%;margin-left: auto;margin-right: auto;}
		.w60{width:60%;margin-left: auto;margin-right: auto;}
		.w35{width:35%;margin-left: auto;margin-right: auto;}
	</style>
	<style type="text/css">
		a:link {
		 text-decoration: none;
		}
		a:visited {
		 text-decoration: none;
		}
		a:hover {
		 text-decoration: none;
		}
		a:active {
		 text-decoration: none;
		}
	</style>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
  </head>

  <body data-spy="scroll" data-target=".bs-docs-sidebar">
	<header class="jumbotron w90" id="overview">
			<h1>WLBLOG </h1>
		<p class="lead">这是副标题</p>

		<div class="navbar navbar-inverse">
			<div class="navbar-inner">
				<div class="container">
					<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>

					<a class="brand" href="index.html">Home</a>
					<div class="nav-collapse">
						<ul class="nav">
							<li class="divider-vertical"></li>
							
						 </ul>
					</div>
				</div>
			</div>
		</div>
	</header>
	<div class="container-fluid w90">
		  <div class="row-fluid">
			<div class="span3">
			<br>
			  <div class="well sidebar-nav " style="width:70%">
				<ul class="nav nav-list">
				  <li class="active">最新：</li>
				  
					<li><a href="1.html">WLBLOG 项目说明</a></li>
				  
				</ul>
			  </div><!--/.well -->
			  <div class="well sidebar-nav" style="width:70%">
				<ul class="nav nav-list">
				  <li class="active">日期：</li>
				  
					<li><a href="201507.html">201507</a></li>
				  
				</ul>
			  </div><!--/.well -->
			  <div class="well sidebar-nav" style="width:70%">
				<ul class="nav nav-list">
				  <li class="active">類別：</li>
				  
					<li><a href="说明.html">说明</a></li>
				  
				</ul>
			  </div><!--/.well -->
			  <div class="well sidebar-nav " style="width:70%">
				<ul class="nav nav-list">
				  <li class="active">友情链接：</li>
					
						<li><a href="http://wangxun.me">运维笔记</a></li>
					
				</ul>
			  </div><!--/.well -->
			</div><!--/span-->
		<div class="container span9">
		<a href='1.html' ><H1>WLBLOG 项目说明</H1></a>
                <br><b>tags：WLBLIG   创建时间：2015-07-30 15:20:05</b><br><HR />
                <h3>更新：</h3>
<p>2015-08-01 加入BAE支持，修改cookie_secret设定。</p>
<p>2015-07-30 项目发布</p>
<h3>1.简介</h3>
<p>WLBLOG是一个由Python+Tornado实现的静态博客生成系统。采用markdown撰写文章。开发初衷一是为了Tornado框架的学习，二是作者对WordPress的繁琐和臃肿十分不满。目前还很粗糙，持续改进中。</p>
<h3>2.技术架构</h3>
<ul>
<li>演示地址：<a href="http://wangxun.me" title="http://wangxun.me">http://wangxun.me</a></li>
<li>开发语言：Python</li>
<li>服务框架：Tornado</li>
<li>前端技術：Bootstrap、Jquery、Highlight,editor.md</li>
<li>文章编辑：markdown</li>
</ul>
<h3>3.技术特性</h3>
<ul>
<li>动静分离：用户访问到的是纯静态的页面，只有写博客和编译静态文件时才需要后端支援。</li>
<li>可灵活部署：可以只部署静态内容（只需要支持静态页面的WEB环境即可），也可以前后端都部署（需要Python环境）。</li>
<li>文档编辑使用了叛道的<a href="https://git.oschina.net/pandao/editor.md" title="Editor.md">Editor.md</a> </li>
</ul>
<h3>4.普通部署</h3>
<p>环境要求：</p>
<blockquote>
<p>系统最好是Linux（Tornado在Windows下基于select速度很low）</p>
<p>需要Mysql数据库</p>
<p>需要MySQLdb模块（<a href="http://sourceforge.net/projects/mysql-python/files/?source=navbar" title="http://sourceforge.net/projects/mysql-python/files/?source=navbar">http://sourceforge.net/projects/mysql-python/files/?source=navbar</a>）</p>
</blockquote>
<ul>
<li>1.首先将数据（data.sql）导入mysql</li>
<li>2.修改db.py的MySQL数据库连接设定。</li>
<li>3.安装Python环境、MySQLdb模块后执行server.py</li>
<li>4.后台地址：/admin</li>
<li>5.默认用户名密码：用户名：admin  密码：admin</li>
</ul>
<h3>5.BAE部署</h3>
<p>BAE.py可以直接支持部署到BAE环境下，配置完数据库连接之后即可直接部署。</p>
<h3>6.后台截图：</h3>
<p><img alt="" src="http://wangxun.me/static/image/20150730203606WZGL.png" /></p>
<p><img alt="" src="http://wangxun.me/static/image/20150730203618zdy.png" /></p> <BR><HR /><div class="ds-thread" data-thread-key="1" data-title="WLBLOG 项目说明" data-url="1.html"></div>
		<script type="text/javascript"> var duoshuoQuery = {short_name:""}; (function() { var ds = document.createElement('script'); ds.type = 'text/javascript';ds.async = true; ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js'; ds.charset = 'UTF-8'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds); })(); </script> 
		</div> 
		

	<!--<textarea class="form-control" rows="3" style="width:90%; margin-left:auto; margin-right:auto;"></textarea>-->
	</div>
	</div>
	<footer>
<center>
<p>Copyright @ 2015  汪勋的运维技术笔记 保留所有权利.<a href="http://www.miibeian.gov.cn/" target="_blank">浙ICP备15022898号-1</a>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ff29896d9c71789306819a4bb0247b6fc' type='text/javascript'%3E%3C/script%3E"));
</script>
</p>
</center>
</footer>
	<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
	<script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
	<script src="http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js"></script>
	<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
